module.exports = {
  title: 'Modify-UI组件库',
  description: 'Modify-UI组件库 官方文档',
  base: "/modify-ui-press/",
  serviceWorker: true,
  evergreen: true,
  port: '8888',
  head: [
    ['link', {
      rel: 'icon',
      href: '/img/logo.png'
    }]
  ],
  themeConfig: {
    logo: '/img/logo.png',
    search: true, // 设置是否使用导航栏上的搜索框
    searchMaxSuggestions: 10, // 搜索框显示的搜索结果数量
    // lastUpdated: 'Last Updated',
    // 顶部导航栏
    nav: [{
        text: "起步",
        link: "/",
      },
      {
        text: "指南",
        link: "/web-lzq-press/guide/guide",
        target: "_blank",
      },
      {
        text: "组件",
        link: "/blog/install/install",
        target: "_blank",
      },
      {
        text: '语言',
        ariaLabel: 'Language Menu',
        items: [{
            text: 'Chinese',
            link: '/language/chinese/'
          },
          {
            text: 'English',
            link: '/language/english/'
          }
        ]
      },
      {
        text: 'GitHub',
        link: 'https://github.com/lizuoqun/Modify-ui/tree/master',
        target: "_blank"
      },
    ],
    // sidebarDepth: 1, //0读取1级标题 1读取1级和2级标题 2读取1级、2级、3级标题
    // 分组排列
    // sidebar: [{
    //   path: "", //分组默认地址
    //   title: "开发指南", //分组标题
    //   sidebarDepth: 1, //作用在项内部的层级，优先级比外部的更高
    //   children: [
    //     "/blog/update-blog/update-blog",
    //     '/blog/install/install',
    //     '/blog/quick-start/quick-start',
    //     ["components/button", "手动设置侧标了title"],
    //   ],
    // }],
    displayAllHeaders: false, // 显示所有页面的标题链接。默认情况下，侧边栏只会显示由当前活动页面的标题（headers）组成的链接
    sidebar: [
      '/',
      {
        title: "开发指南",
        sidebarDepth: 2,
        children: [
          "/blog/introduce/introduce",
          "/blog/update-blog/update-blog",
          '/blog/install/install',
          '/blog/quick-start/quick-start',
        ],
      },
      {
        title: "组件",
        sidebarDepth: 2,
        children: [
          '/blog/echart-map/echart-map',
          '/blog/vis-topo/vis-topo',
          '/blog/g6-topo/g6-topo',
          '/blog/code-rain/code-rain',
          '/blog/mp3-visualization/mp3-visualization'
        ],
      },
    ],
    // 假定是 GitHub. 同时也可以是一个完整的 GitLab URL
    // repo: 'vuejs/vuepress',
    // repoLabel: '查看源码',
    // 页面滚动
    smoothScroll: true
  }
}